
default:	build

clean:
	rm -rf objs/src
	rm -rf objs/addon
	rm -f objs/nginx

build:
	$(MAKE) -f objs/Makefile

install:
	$(MAKE) -f objs/Makefile install

modules:
	$(MAKE) -f objs/Makefile modules

upgrade:
	./build/nginx/sbin/nginx -t

	kill -USR2 `cat ./build/nginx/logs/nginx.pid`
	sleep 1
	test -f ./build/nginx/logs/nginx.pid.oldbin

	kill -QUIT `cat ./build/nginx/logs/nginx.pid.oldbin`
